package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;

/**
 * @author cjr
 */
@Data
@Builder
@ApiModel
public class GoodsListResponse {
    @ApiModelProperty(value = "商品列表", dataType = "GoodsListResponse.Goods")
    private PageResponse2<Goods> goodsPage;

    @ApiModel("GoodsListResponse.Goods")
    @Data
    @Builder
    public static class Goods {
        @ApiModelProperty("商品ID")
        private Integer goodsId;
        @ApiModelProperty("商品图片")
        private String goodPhoto;
        @ApiModelProperty("商品名称")
        private String goodsName;
        @ApiModelProperty("商品价格")
        private BigDecimal price;
        @ApiModelProperty("主推：0否 1是")
        private Integer mainPush;
        @ApiModelProperty("分类名称")
        private String typeName;
        @ApiModelProperty("是否可编辑：0否 1是")
        private Integer editFlag;
    }
}
